package com.travel.travelServer.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.travel.travelServer.utils.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/**
 * (Fruit)表实体类
 *
 * @author makejava
 * @since 2024-03-01 15:39:05
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Goods extends BaseEntity<Goods> {

    //水果名
    private String name;
    //数量
    private Integer number;
    //图片
    private String image;
    //价格
    private String price;
    //介绍
    private String content;
    //分类
    @JsonFormat(shape=JsonFormat.Shape.STRING)
    private Long categoryId;

    @TableField(exist = false)
    private Business category;
    //购物车数量
    private Integer count;

    @TableField(exist = false)
    private Boolean isCollect;
}

